<template>
	<view>
		<view @tap="slectedArea"> 调取组件</view>
		订单页面
		<simple-address ref="simpleAddress" 
		:pickerValueDefault="cityPickerValueDefault" 
		@onConfirm="onConfirm" themeColor="#007AFF"></simple-address>
	</view>
</template>

<script>
	import {
		getPreOrderById
	} from "@/api/kind/list/info/index.js"
	import simpleAddress from '@/components/simple-address/simple-address.vue';
	export default {
		components: {
		        simpleAddress
		    },
		data() {
			return {
				cityPickerValueDefault: [0, 0, 1],
			};
		},
		methods:{
			onConfirm(res){
				console.log(res)
			},
			slectedArea(){
				this.$refs.simpleAddress.open();
			}
		},
		onLoad(options) {
			getPreOrderById(options.id)
		}
	}
</script>

<style lang="scss" scoped>

</style>
